* {
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    color: #333;
}

a:hover,
a:visited,
a:link,
a:active {
    color: #000;
}

.chatbox {
    width: 600px;
    margin: 30px auto 0;
    // background-color: skyblue;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 24px 0px #c5d0e6;
    header {
        padding: 10px 0;
        text-align: center;
        background-color: #e3e6e5;
        a {
            font-size: 20px;
            color: #000;
            letter-spacing: 3px;
            cursor: pointer;
            font-weight: 600;
        }
    }

    .content {
        height: 700px;
        background-color: #fff;
        padding: 15px 15px 5px;
        background: url('../imgs/lxq.jpg') no-repeat;
        background-size: 100% 100%;
        overflow: auto;

        .chatBox {
            div {
                overflow: hidden;
                margin-bottom: 10px;

                p {
                    position: relative;
                    padding: 10px;
                    max-width: 75%;
                    font-size: 14px;
                    line-height: 16px;
                    border-radius: 5px;
                    letter-spacing: 1px;
                }

                img {
                    width: 40px;
                    height: 40px;
                    float: right;
                    border-radius: 5px;
                }
            }

            div.me {
                p {
                    background-color: #77f777;
                    float: right;
                }

                img {
                    float: right;
                    margin-left: 15px;
                }

                p::after {
                    content: '';
                    right: -11px;
                    top: 11px;
                    border-left: 6px solid #77f777;
                    border-right: 6px solid transparent;
                    border-top: 6px solid transparent;
                    border-bottom: 6px solid transparent;
                    position: absolute;
                }
            }

            div.opposite {
                p {
                    float: left;
                    background-color: #fff;
                }

                img {
                    float: left;
                    margin-right: 15px;
                }

                p::after {
                    content: '';
                    left: -11px;
                    top: 11px;
                    border-left: 6px solid transparent;
                    border-right: 6px solid #fff;
                    border-top: 6px solid transparent;
                    border-bottom: 6px solid transparent;
                    position: absolute;
                }
            }
        }

    }

    .content::-webkit-scrollbar {
        width: 2px;
    }

    &::-webkit-scrollbar-thumb {
        background-color: #d8dee9;
        border-radius: 2px;
    }

    .sendMessage {
        border: 1px rgb(187, 205, 218) solid;
        background-color: #e3e6e5;
        height: 90px;
        padding: 5px;
        text-align: right;

        textarea {
            width: calc(100% - 20px);
            height: calc(70% - 20px);
            resize: none;
            border: 0;
            font-size: 12px;
            padding: 10px;
        }

        textarea:active,
        textarea:focus {
            outline: none;
        }

        textarea::-webkit-scrollbar {
            width: 1px;
        }

        span {
            margin-top: 5px;
            font-size: 14px;
            padding: 3px 12px;
            background-color: rgb(215, 219, 219);
            border-radius: 4px;
            cursor: pointer;
        }
    }
}